package com.wuyou.programmingIdeas.Chapter9interface.part1;

/**
 * @Description
 * @Author 无忧
 * @Date 2023/12/19 21:36
 */
public class FilterAdapter implements Processor{

    Filter filter;

    public FilterAdapter(Filter filter){
        this.filter = filter;
    }

    @Override
    public String name() {
        return filter.name();
    }

    @Override
    public Waveform process(Object input) {
        return filter.process((Waveform) input);
    }
}
